package com.wez.service.impl;

import com.wez.dao.UserMapper;
import com.wez.pojo.User;
import com.wez.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper userMapper;

    public List<User> findUser() {
        return userMapper.findUser();
    }

    public int deleteUserById(Integer id) {
        // 返回删除操作影响的行数
        return userMapper.deleteUserById(id);
    }
}